package day13;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;

public class test6 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream ois=new ObjectInputStream(new FileInputStream("study\\src\\java.txt"));
        User o = (User) ois.readObject();
        System.out.println(o);
        ois.close();
    }
}
